package com.wise.site.protocol.result;

import org.json.JSONException;
import org.json.JSONObject;

import com.wise.site.R;
import com.wise.site.protocol.base.SoapItem;
import com.wise.site.utils.ImageLoader;
import com.wise.site.utils.ImageLoader.Imager;


public class AboutUSResult extends SoapItem {
	
	public int id;
	public String logoUrl;
	public String companyName;
	public String phoneNumber;
	public String email;
	public String website;
	public String introduction;
	public String address;

	public AboutUSResult(JSONObject node) {
		super(node);
	}
	
	@Override
	public void parse(JSONObject node) throws JSONException {
		id = node.getInt("id");
		phoneNumber = node.getString("phone");
		website = node.getString("officialWebsite");
		introduction = node.getString("description");
		email = node.getString("email");
		address = node.getString("address");
		companyName = node.getString("name");
		logoUrl = node.getString("logoImageUrl");
		ImageLoader.getInstance().getBitmap(new Imager(logoUrl, null));
	}
	

}
